-
Home
-
ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF
-
6.2.2
-
Code
-
Classes
- CDNController
| Total Complexity |
98 |
| Dependencies |
6 |
| Dependents |
3 |
| Total lines |
786 |
| Lines of code |
456 |
| Logical lines of code |
281 |
| Comment lines |
107 |
| Methods |
26 |
| Properties |
5 |
Methods 26
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| createArguments() |
A |
46 |
16 |
35 |
| processScript() |
A |
43 |
12 |
50 |
| processFront() |
A |
43 |
7 |
54 |
| purgeCDN() |
A |
48 |
7 |
32 |
| loadCDNDomain() |
S |
52 |
6 |
27 |
| extractImageMatches() |
S |
51 |
5 |
27 |
| createReplacements() |
S |
52 |
4 |
24 |
| getPurgeURL() |
S |
55 |
4 |
19 |
| registerDomain() |
S |
51 |
3 |
28 |
| flushItem() |
S |
53 |
3 |
23 |
| checkScheme() |
S |
64 |
4 |
9 |
| checkJson() |
S |
64 |
4 |
10 |
| checkDomain() |
S |
59 |
3 |
14 |
| addWPHooks() |
S |
64 |
3 |
9 |
| fetchInlineBackground() |
S |
62 |
2 |
12 |
| pregReplaceContent() |
S |
60 |
2 |
12 |
| validateCDNDomain() |
S |
65 |
2 |
11 |
| __construct() |
S |
66 |
2 |
9 |
| init() |
S |
59 |
1 |
15 |
| checkContent() |
S |
69 |
2 |
7 |
| fetchImageMatches() |
S |
72 |
1 |
5 |
| fetchDocumentMatches() |
S |
91 |
1 |
2 |
| stringReplaceContent() |
S |
72 |
1 |
5 |
| pregReplaceByString() |
S |
66 |
1 |
8 |
| listenFlush() |
S |
74 |
1 |
4 |
| getURLBase() |
S |
72 |
1 |
5 |